package edu.sctu.wangfuxin.day20150601testtrain;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * Created by user06 on 2015/6/11.
 */
public class Date {


    public void DateDeth(int count) {
        Calendar calendar = Calendar.getInstance();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss:");
        System.out.println("进站时间：" + sdf.format(calendar.getTime()));
        long shijianchuo2 = calendar.getTimeInMillis() + (count * 2000);//计算出出战时间戳
        System.out.println("出站时间：" + sdf.format(shijianchuo2));
    }
}
